<template>
  <div class="login">

    <p class="login-word">您好，欢迎来到星猫充电</p>
    <div class="login-input">
      <div class="login-input-row">
        <img src="../../assets/login/phone.png" alt="">
        <input type="text" placeholder="账号">
      </div>
      <div class="login-input-row">
        <img src="../../assets/login/key.png" style="width:15px">
        <input type="text" placeholder="密码">
      </div>
    </div>
    <div class="login-btn">登录</div>
  </div>
</template>

<script>
  export default {
    mounted() {
      document.title = "登录"
    },
    methods: {

    }
  };
</script>

<style lang="less" scoped>
  @media screen and (min-width: 321px)and (max-width: 750px) {
    .login {
      position: fixed;
      z-index: 2;
      width: 100%;
      height: 100vh;
      overflow: hidden;
      background-image: url(../../assets/login/login_bg.png);
      -webkit-background-size: 100%;
      background-size: 100%;
      color: #fff;

      .login-word {
        margin: 0;
        padding-top: 108px;
        padding-bottom: 117px;
        font-size: 18px;
        text-align: center;
      }

      .login-input {
        padding: 0 42px;
      }

      .login-input-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 295px;
        border-bottom: 1px solid #AED1FE;
        margin-bottom: 24px;

        img {
          width: 13px;
        }

        input {
          width: 100%;
          height: 33px;
          background-color: transparent;
          border: 0;
          color: #fff;
          padding-left: 10px;
          box-sizing: border-box;
          outline: none;
        }

        ::-webkit-input-placeholder {
          /* WebKit browsers */
          color: #fff;
          font-size: 15px;
        }

        ::-moz-placeholder {
          /* Mozilla Firefox 19+ */
          color: #fff;
          font-size: 15px;
        }

        :-ms-input-placeholder {
          /* Internet Explorer 10+ */
          color: #fff;
          font-size: 15px;
        }
      }

      .login-btn {
        width: 294px;
        height: 44px;
        border-radius: 25px;
        background-color: #fff;
        color: #1677FF;
        font-size: 16px;
        text-align: center;
        line-height: 44px;
        font-weight: bold;
        letter-spacing: 20px;
        margin: 117px auto 0 auto;
      }
    }
  }

  @media screen and (min-width: 300px)and (max-width: 320px) {
    .login {
      position: fixed;
      z-index: 2;
      overflow: hidden;
      width: 100%;
      height: 100vh;
      background-image: url(../../assets/login/login_bg.png);
      -webkit-background-size: 100%;
      background-size: 100%;
      color: #fff;

      .login-word {
        margin: 0;
        padding-top: 96px;
        padding-bottom: 60px;
        font-size: 18px;
        text-align: center;
      }

      .login-input {
        padding: 0 29px;
      }

      .login-input-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 251px;
        border-bottom: 1px solid #AED1FE;
        margin-bottom: 24px;

        img {
          width: 13px;
        }

        input {
          width: 100%;
          height: 32px;
          background-color: transparent;
          border: 0;
          color: #fff;
          padding-left: 10px;
          box-sizing: border-box;
          outline: none;
        }

        ::-webkit-input-placeholder {
          /* WebKit browsers */
          color: #fff;
          font-size: 15px;
        }

        ::-moz-placeholder {
          /* Mozilla Firefox 19+ */
          color: #fff;
          font-size: 15px;
        }

        :-ms-input-placeholder {
          /* Internet Explorer 10+ */
          color: #fff;
          font-size: 15px;
        }
      }

      .login-btn {
        width: 251px;
        height: 38px;
        border-radius: 25px;
        background-color: #fff;
        color: #1677FF;
        font-size: 16px;
        text-align: center;
        line-height: 38px;
        letter-spacing: 20px;
        font-weight: bold;
        margin: 80px auto 0 auto;
      }
    }
  }
</style>
